<%-- 
    Document   : FormHapusPaket
    Created on : 04 Des 12, 18:46:48
    Author     : wisnu
--%>

<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.bp.Paket" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="paket" scope="application" class="com.bp.Paket"/>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body class="backround">
        <style type="text/css">
            .backround{background-image: url("img/background.jpg");
            }
            .menu-top a{color:darkgray;width:auto;float:left;display:block;
                        text-align:center;
                        padding:6px 0 0;
                        -transition:border linear .2s,color linear .2s;
                        -moz-transition:border linear .2s,color linear .2s;
                        -webkit-transition:border linear .2s,color linear .2s;
                        -o-transition:border linear .2s,color linear .2s;}
            .menu-top a:hover{color:#fff;}
            .hover a:hover{color: #ffffff}
            .timeline-header a
            {padding:5px;color:#ccc;
             -transition:border linear .2s,color linear .2s;
             -moz-transition:border linear .2s,color linear .2s;
             -webkit-transition:border linear .2s,color linear .2s;
             -o-transition:border linear .2s,color linear .2s;}

        </style>

    </body>
    <body>
    <center> <a href="formUtamaBiro.jsp"><img src="img/logo gredy.jpg" width="1350" height="120"/></a></center>
        <FORM method="post" action="FormHapusPaket.jsp">  
            <%com.bp.DbBean_1 kon = new com.bp.DbBean_1();%>
            <h3> Silahkan klik gambar hapus untuk menghapus</h3>
            <table border=2>
                <TR>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Id_Paket</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Nama_Paket</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Harga</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Lama</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Lokasi</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Fasilitas</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Tujuan</B></FONT></TD>
                </TR>  

                <%
                    ArrayList pkt = paket.lihatDataPaket();
                    Iterator iterator = pkt.iterator();
                    while (iterator.hasNext()) {
                        Paket product = (Paket) iterator.next();
                %>

                <tr>
                    <td><%=product.id_paket%></td>
                    <td><%=product.nama_paket%></td>
                    <td><%=product.harga_paket%></td>
                    <td><%=product.lama%></td>
                    <td><%=product.lokasi%></td>
                    <td><%=product.fasilitas%></td>
                    <td><%=product.tujuan%></td>
                    <TD><a href="hapus.jsp?action=FormHapusPaket&idPaket=<%=product.id_paket%>" style="text-decoration: none">Hapus</TD>



                </tr>

                <%
                    }
                %>




            </table>

        </FORM> 
  </center>
<center>
    <br>
    <hr style="color: whitesmoke;" size=" 2px" >
    <br><div class="txt_content03"><b> BiroWisataGreedy.com
        Tel: 62-274-878555 (Hunting), 878777, 0274-70949944 Mobile: 0274-99681382, 99995259 Fax: 62-274-8355802 <br>

        Email: info@BiroWisataGreedy.com
        <br><br>
        Support by : <br>
        <a href="http://www.usd.ac.id" target="_blank">Universitas Sanata Dharma</a>
        <br>
        </div>
    </body>
</html>